package com.financing.platform.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IGroupDao;
import com.financing.platform.dto.GroupDTO;
import com.financing.platform.service.IGroupService;

/**
 * 
* @ClassName: GroupServiceImpl 
* @Description: 组管理实现类 
* @author chenming 
* @date 2014年7月21日 下午1:06:36 
*
 */
@Service("groupServiceImpl")
@Component("groupServiceImpl")
public class GroupServiceImpl extends BaseServiceImpl implements  IGroupService {

	@Autowired
	IGroupDao groupDaoImpl;
	
	public List<GroupDTO> queryAllGroup(GroupDTO group) {
		return groupDaoImpl.queryAllGroup(group);
	}

	public int addGroup(GroupDTO group) {
		
		return groupDaoImpl.addGroup(group);
	}

	public GroupDTO queryGroup(GroupDTO group) {
		
		return groupDaoImpl.queryGroup(group);
	}

	public int updateGroup(GroupDTO group) {
		if(null!= groupDaoImpl.updateGroup(group)){
			return 1;
		}
		return 0;
		
	}
	
}
